﻿using System;
using System.Collections.Generic;
using System.Text;
using SharpDiary.Core.Data;

namespace SharpDiary.Core.ORMapping
{
    /// <summary>
    /// 日记组信息。
    /// </summary>
    [TableInfoAttribute("DiaryGroupInfo")]
    public class DiaryGroupInfo
    {
        #region

        private System.Int64 _id;

        [FieldMapping(true, System.Data.DbType.Int64, true, true)]
        public System.Int64 Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private System.String _name;

        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public System.String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private System.DateTime _createdDatetime;

        [FieldMapping(false, System.Data.DbType.DateTime, false, false)]
        public System.DateTime CreatedDatetime
        {
            get { return _createdDatetime; }
            set { _createdDatetime = value; }
        }

        private System.String _description;

        [FieldMapping(false, System.Data.DbType.String, false, false)]
        public System.String Description
        {
            get { return _description; }
            set { _description = value; }
        }


        #endregion

        #region Constructors

        public DiaryGroupInfo() { }

        #endregion
    }

}
